import { RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/setting/role',
    name: 'SystemRole',
    component: () => import('@/views/setting/Role.vue'),
    meta: {
      title: '角色设置'
    }
  },
  {
    path: '/setting/role/edit',
    name: 'SystemRoleEdit',
    component: () => import('@/views/setting/RoleCreate.vue'),
    meta: {
      title: '编辑角色',
      breadcrumb:[
        {title:'角色设置',path:'/setting/role'},
      ]
    }
  },
  {
    path: '/setting/role/create',
    name: 'SystemRoleCreate',
    component: () => import('@/views/setting/RoleCreate.vue'),
    meta: {
      title: '添加角色',
      breadcrumb:[
        {title:'角色设置',path:'/setting/role'},
      ],
      keepAlive: true
    }
  },
  {
    path: '/setting/manager',
    name: 'SystemManager',
    component: () => import('@/views/setting/Manager.vue'),
    meta: {
      title: '管理员'
    }
  },
  {
    path: '/setting/library',
    name: 'LibrarySetting',
    component: () => import('@/views/setting/Library.vue'),
    meta: {
      title: '素材中心',
      keepAlive: true
    }
  },
  {
    path: '/setting/area',
    name: 'AreaSetting',
    component: () => import('@/views/setting/Area.vue'),
    meta: {
      title: '地区管理',
      keepAlive: true
    }
  },
  {
    path: '/shop/setting',
    name: 'ShopSetting',
    component: () => import('@/views/shop/setting.vue'),
    meta: {
      title: '店铺设置',
    }
  },
  {
    path: '/setting/openCity',
    name: 'OpenCitysetting',
    component: () => import('@/views/setting/OpenCity.vue'),
    meta: {
      title: '城市管理',
    }
  }
]
export default routes
